﻿<%@ Page Language="C#" MasterPageFile="~/provider/TravelInsurance/TravelInsurance.master"
    AutoEventWireup="true" CodeFile="ViewProviderTIPremium.aspx.cs" Inherits="Provider_TravelInsurance_ViewProviderTIPremium" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Premium
        </h1>
        <div class="right_action">
            <asp:HyperLink runat="server" ID="lnkNewClaimInfo" NavigateUrl="~/Provider/TravelInsurance/ProviderTIPremium.aspx"
                Text="New"></asp:HyperLink>
        </div>
        <fieldset>
            <dl>
                <dt>
                    <label>
                        Type of policy</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlPolicyType" runat="server" class="text" Width="145px" AutoPostBack="true"
                        OnSelectedIndexChanged="GetPlans">
                        <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="Individual">Individual</asp:ListItem>
                        <asp:ListItem Value="IndividualSpouse">Individual + Spouse</asp:ListItem>
                        <asp:ListItem Value="IndividualChild">Individual + Child</asp:ListItem>
                        <asp:ListItem Value="Family">Family</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="txtProviderComId" runat="server" Text="0" Visible="false"></asp:TextBox>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Plan Name</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlPlanName" runat="server" class="text" Width="145px" AutoPostBack="true"
                        OnSelectedIndexChanged="LoadPremium">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvPlanName" runat="server" ErrorMessage="*" ControlToValidate="ddlPlanName"
                        InitialValue="-1"></asp:RequiredFieldValidator>
                    <asp:Label ID="lblTAId" runat="server" Text="0" Visible="false"></asp:Label>
                </dd>
            </dl>
            <dl>
                <dt>
                    <label>
                        Area/Region</label></dt>
                <dd>
                    <asp:DropDownList ID="ddlAreaRegion" runat="server" class="text" Width="145px" AutoPostBack="true"
                        OnSelectedIndexChanged="LoadPremium">
                    </asp:DropDownList>
                </dd>
            </dl>
            <i>
                <asp:Label ID="lblAnnual" runat="server" CssClass="blackfont" Text="*annual plan's premium duration start and end day is zero (0)"></asp:Label></i>
        </fieldset>
        <asp:GridView ID="grvPremium" runat="server" AutoGenerateColumns="false" CellPadding="2"
            DataKeyNames="TAPreID" EmptyDataText="There are no data records to display."
            CssClass="progridstyle" GridLines="None">
            <Columns>
                <asp:BoundField DataField="TAPreID" HeaderText="TAPreID" InsertVisible="False" ReadOnly="True"
                    SortExpression="TAPreID" Visible="False" />
                <asp:BoundField DataField="DurationStart" HeaderText="Duration Start (days)" SortExpression="DurationStart"
                    ItemStyle-Width="150px" />
                <asp:BoundField DataField="DurationEnd" HeaderText="Duration End (days)" SortExpression="DurationEnd"
                    ItemStyle-Width="150px" />
                <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" />
                <asp:HyperLinkField HeaderText="BrowserInfo" Text="Select" Target="_self" DataNavigateUrlFormatString="ProviderTIPremium.aspx?PID={0}&COV={1}&TID={2}"
                    DataNavigateUrlFields="TAPreID, PlanType,TAInsId" ItemStyle-Width="110px"></asp:HyperLinkField>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle CssClass="progridover" />
            <HeaderStyle CssClass="progridheader" />
            <EditRowStyle />
            <AlternatingRowStyle CssClass="progridodd" />
            <RowStyle CssClass="progrideven" />
        </asp:GridView>
        <fieldset class="action">
            <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
                ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
        </fieldset>
    </div>
</asp:Content>
